package com.bt.lms.main;

import com.bt.lms.ui.page.first.Login;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.stage.Stage;

/**
 * 程序启动类
 */
public class BotLmsApp extends Application {

    /**
     * 界面总宽
     */
    public final static Integer WIGHT = 1360;

    /**
     * 界面预计高度
     */
    public final static Integer HEIGHT = 650;

    /**
     * 索引宽度
     */
    public final static Integer INDEXES = 180;

    /**
     * 个人宽度
     */
    public final static Integer PER_WIGHT = WIGHT - INDEXES;

    /**
     * 程序入口
     *
     * @param args 参数
     */
    public static void main(String[] args) {
        launch(args);
    }

    /**
     * 界面开始的地方
     *
     * @param primaryStage the primary stage for this application, onto which
     *                     the application scene can be set. The primary stage will be embedded in
     *                     the browser if the application was launched as an applet.
     *                     Applications may create other stages, if needed, but they will not be
     *                     primary stages and will not be embedded in the browser.
     */
    @Override
    public void start(Stage primaryStage) {

        //显示界面(公共区域)
        Login pageCommon = new Login(primaryStage);
        Scene scene = new Scene(pageCommon);
        primaryStage.setScene(scene);
        primaryStage.show();

    }
}